{loop $tags $t}
<li {if $class} class="{$class}"{/if}><span>{if $showcat}<a href="{$t[caturl]}"{if $target} target="{$target}"{/if}>[{$t[catname]}]</a> {/if}</span> <a href="{$t[linkurl]}"{if $target} target="{$target}"{/if} title="{$t[alt]}">{$t[title]}</a></li> 
{/loop}

